package com.jili.singleton;

/**
 * ClassName: Singleton
 * Package com.jili.singleton
 * Description:
 *
 * @Author: 廖继礼
 * @Create: 2024/7/28
 * @Version: v1.0
 */
public class Singleton {

    private static volatile  Singleton singleton;

    public static class SingletonInstance{
        private static final Singleton SINGLETON = new Singleton();
    }
    private Singleton(){

    }

    public  static Singleton getInstance(){
        return SingletonInstance.SINGLETON;
    }
}
